const state = {
	saveDates: [],
	nowYearDatas: [],
	selectYearDatas: []
};

const mutations = {
	SAVE_DATES(target, saveDates) {
		target.saveDates = saveDates;
	},
	PUSH_DATES(target, data) {
		target.saveDates.push(data);
	},
	//选择当前年月下的非工作日
	SELECT_NOW_DAY_BY_YEAR(target, nowYearDatas) {
		console.log(nowYearDatas);
		target.nowYearDatas = nowYearDatas;
	},
	SET_SELECT_YEAR(target, selectYearDatas) {
		target.selectYearDatas = selectYearDatas;
	}
};

export default {
	state,
	mutations
};
